package com.shf.controller;

import com.shf.domain.ResponseResult;
import com.shf.service.LinkService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**友链控制层
 * @author 叶枫
 * @date 2023/10/29.
 */

@RestController
@RequestMapping("/link/")
@Api(tags = "友链相关接口")
public class LinkController {

    /**注入友链业务层接口*/
    @Autowired
    private LinkService linkService;

    /**
     * 展示所有 友链
     * @return
     */
    @GetMapping("getAllLink")
    public ResponseResult getAllLink(){

       return linkService.getAllLink();

    }
}
